package org.edu.modules.sbzc.fund.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-设备资产分类 参照 JY/T 1001-2012 高等学校固定资产分类及编码
 */
@TableName("ve_sbzc_zc_category")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="设备资产分类 参照 JY/T 1001-2012 高等学校固定资产分类及编码对象", description="ve_sbzc_zc_category")
public class VeSbzcZcCategory extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "分类代码")
    @Length(max = 30)
    private String code;

    @TableField
    @ApiModelProperty(value = "分类名称")
    @Length(max = 30)
    private String name;

    @TableField
    @ApiModelProperty(value = "排序")
    private Integer listSort;

    @TableField
    @ApiModelProperty(value = "父ID")
    private Integer pid;

    @TableField
    @ApiModelProperty(value = "路径")
    @Length(max = 200)
    private String path;
}
